import { ModelAdapterFactory } from "./ModelAdapterFactory";
import { QwenAnthropicAdapter } from "./QwenAnthropicAdapter";

export function createAdapter(name: string, apiKey: string, baseURL?: string) {
    // 注册所有适配器
    ModelAdapterFactory.registerAdapter('qwen', QwenAnthropicAdapter);
    const qwenAdapter = ModelAdapterFactory.createAdapter(name, apiKey, baseURL);
    return qwenAdapter
}